<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use GuzzleHttp\Client;

class HomeController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {

    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
//        $url = 'http://api.jisuapi.com/driverexam/query';
//        $client = new Client();
//        $res=$client->request('POST',$url,[
//            'form_params'=>[
//                'type'=>'C1',
//                'subject'=>'1',
//                'pagesize'=>'1300',
//                'pagenum'=>\Request::get('page'),
//                'appkey'=>'5934edf26d08ea5c',
//                'appsecret'=>'RUfsw0qxH9ObT2D3TKnwyrk4ukCjImBC'
//            ]
//        ]);
//
//       return $res->getBody()->getContents();
    }
}
